<template>
  <div class="mainsu">
    <div class="main_spac1">
      <div class="main_white padding10 paddingBottom20">
        <div class="main_ti box">
          <el-tabs v-model="activeName" @tab-click="handleClick" class="box">
            <el-tab-pane label="商品列表" name="1"></el-tab-pane>
            <el-tab-pane label="商品分类" name="2"></el-tab-pane>
          </el-tabs>
        </div>

        <!-- 主体内容 -->
        <div>
          <profit-report-sku v-show="activeName == 1"></profit-report-sku>
          <profit-report-category
            v-show="activeName == 2"
          ></profit-report-category>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import ProfitReportCategory from "./profitReportCategory.vue";
import profitReportSku from "./profitReportSku.vue";
export default {
  components: { profitReportSku, ProfitReportCategory },
  data() {
    return {
      activeName: "1",
    };
  },
  methods: {
    handleClick(tab, event) {},
  },
};
</script>

<style lang="scss" scoped>
@import "@/styles/variables.scss";

.main_ti {
  display: flex;
  align-items: center;
  flex-direction: row;
  margin-bottom: 15px;
  padding-bottom: 1px;
  position: relative;

  /deep/.el-tabs__header {
    margin: 0;
  }
  /deep/.el-checkbox {
    margin-top: 12px;
  }
  &::after {
    height: 1px;
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #e4e7ed;
    z-index: 1;
  }
  /deep/.el-tabs__nav-wrap::after {
    height: 0;
  }
}
</style>